import requestService from '../service/request'

const Api = {
  all: "/app/mango/open/city/all",
  region: "/app/mango/open/city/region",
};

//获取全国所有城市
export function all() {
  return requestService(Api.all, {
    type: 'get'
  })
}

//城市的行政区/县
export function region(city_id) {
  return requestService(Api.region, {
    type: 'get',
    data: { city_id }
  })
}